/**
 * @Description:
 * @Author ZhangYu
 * @Date 2020-03-13 14:29:57
 */

function CommonJSModule() {
  console.log('//TODO');
  console.log('Commonjs做一些操作');
}


function AMDModule() {
  console.log('//TODO');
  console.log('AMD做一些操作');
}

(function (global,factory) {
  console.log('执行立即执行函数');
  if(typeof module !== `undefined` && typeof exports === `object`) {
    module.exports = CommonJSModule;
  }
  if(typeof define === `function` && define.amd) {
    define(function() { return AMDModule; });
  }
})();